xenstore: use array for xenstore wire command handling
authorJuergen Gross <jgross@suse.com>
Mon, 5 Dec 2016 07:48:48 +0000 (08:48 +0100)
committerWei Liu <wei.liu2@citrix.com>
Mon, 5 Dec 2016 11:28:37 +0000 (11:28 +0000)
commit5363347055bef067970c549bf87ee7149b170c01
tree85e8edded6d9a6cc67ca1aa9edc23622f22e4a77
parentd4016288ab1fa761d2a42a74a0095e77541c0010
xenstore: use array for xenstore wire command handling

Instead of switch() statements for selecting wire command actions use
an array for this purpose.

While doing this add the XS_RESTRICT type for diagnostic prints and
correct the printed string for XS_IS_DOMAIN_INTRODUCED.

Signed-off-by: Juergen Gross <jgross@suse.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
tools/xenstore/xenstored_core.c
xen/include/public/io/xs_wire.h